import seaborn as sns
import matplotlib.pyplot as plt

def plot_confusion_matrix(cm):
    """绘制混淆矩阵"""
    sns.heatmap(cm, annot=True)
    plt.show()